package com.cheer.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author cheer
 */
@Data
public class OaMatrixAddDTO {

    @NotNull(message = "所属分类Id不能为空")
    private Integer pid;

    @NotBlank(message = "矩阵名称不能为空")
    @Length(max = 20, message = "矩阵名称字符数不能超过20")
    private String name;

    @Length(max = 255, message = "缩略图地址字符数不能超过255")
    private String imgUrl;

    @Length(max = 255, message = "跳转链接的字符数不能超过255")
    private String href;

    private Integer sort;
}
